<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns a bucket object from the brigade to operate on</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.stream-bucket-append.html">« stream_bucket_append</a></li>
      <li style="float: right;"><a href="function.stream-bucket-new.html">stream_bucket_new »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.stream.html">Stream 函数</a></li>
    <li>Returns a bucket object from the brigade to operate on</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.stream-bucket-make-writeable" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_bucket_make_writeable</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stream_bucket_make_writeable</span> &mdash; <span class="dc-title">
   Returns a bucket object from the brigade to operate on
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.stream-bucket-make-writeable-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_bucket_make_writeable</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$brigade</code></span>): <span class="type"><span class="type">?</span><span class="type">object</span></span></div>

  <p class="para rdfs-comment">
   This function is called whenever there is the need to access and operate on the content contains in a brigade. It is
   typically called from <span class="methodname"><a href="php-user-filter.filter.html" class="methodname">php_user_filter::filter()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-bucket-make-writeable-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">brigade</code></dt>

     <dd>

      <p class="para">
       The brigade to return a bucket object from.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-bucket-make-writeable-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a bucket object with the properties listed below or <strong><code>null</code></strong>.
   <dl>
    
     <dt>

      <span class="property">data</span>
      (<span class="type">string</span>)
     </dt>

     <dd>

      <p class="para">
       <code class="parameter">data</code> <code class="literal">bucket</code> The current string in the bucket.
      </p>
     </dd>

    
    
     <dt>

      <span class="property">datalen</span>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <p class="para">
       <code class="parameter">datalen</code> <code class="literal">bucket</code> The length of the string in the bucket.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.stream-bucket-make-writeable-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.stream-bucket-append.html" class="function" rel="rdfs-seeAlso">stream_bucket_append()</a> - Append bucket to brigade</span></li>
    <li class="member"><span class="function"><a href="function.stream-bucket-prepend.html" class="function" rel="rdfs-seeAlso">stream_bucket_prepend()</a> - Prepend bucket to brigade</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>